This article introduces how to create a custom component in
In this example, a small column of a slide bar is implemented.
Step 1. Create a flash file named slider. Fla. Save it in the slider001 directory.Step 2. Create a movieclip component named slider in the document.Step 3. Create a slider class and save it in the slider001 \ actionscriptbible \ components directory// Declare a class named slider. This class is located in the actionscriptbible. Components Package.
// This class should prote
Open the document, initialize the settings based on user rights (EditType)
function ondocumentopened (vfilename,vobject)
{
var mprotect,mtools,mtrack,mprint,mshow;
Gfilename=vfilename; Get global filename
Gobject=vobject; Get Global Object
Set traces and protection status
if (WebForm. weboffice.edittype== "0") {
Mprotect=true;
Mtools=false;
Mtrack=false;
Mprint=false;
Mshow=true;
}else if (WebForm. weboffic
there is a better plan for the great God, I will know.Note: This article, not suitable for MediaPlayer do not understand the classmate, assume that this article, are already preliminary use of the service students. One, the reading of the music list.With regard to the reading of the music list, different music players will have different schemes, some of which have multiple schemes to use. For example, a full scan of music format files, etc., but Android itself has a media library, you can rea
sample rate channels.
2, constructs the Audiotrack object, and assigns the value to the T
3. Store the Audiotrack object in the Mtrack memberWhen the above process has been completed, As you continue to parse the Audioplayer.start function, a Audiotrack object is instantiated, then information such as frame size, bits, and so on, is called Maudiotrack.start, and the Mediaplayerservice audio output start function is finally reached.
The c
Process of creating audiotrack in mediaplayer
When you use mediaplayer to play audio and video, an audiotrack object is created for playing audio data. Let's take a look at the mediaplayer's process of creating audiotrack:
1. Create an audiotrack objectThe mediaplayer class does not directly create an audiotrack. Instead, it places the operation for creating an audiotrack object in the internal class audiooutput of the mediaplayerservice class.The specific code is implemented in the mediaplayers
smooth output of audio spSince Maudiotrack is a proxy object for binder, start invokes the Start method to the Bbinder object, which isstatus_t Audioflinger::trackhandle::start () { return Mtrack->start ();}Since we are doing audio output under Playbackthread, we will call further to Playbackthread::track:: Start method, the most important of which is the following two steps:status_t Audioflinger::P laybackthread::track::start ( playbackthr
anim_grow_from_center = 3; public static final int anim_auto = 4; private int animstyle; private Boolean animatetrack; private viewgroup mtrack; private arraylist
Here, we only paste the core code. If you use other code, you can download the source code and study it. Continue with my style and release your source code to share with you. I hope this will help you a little bit.
If you need to reprint reference please indicate the source: http://blog.c
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.